]> dgit.raspbian.org Git - gnome-shell.git/commit
environment: Preserve time 0 when animations are disabled
authorAlessandro Bono <alessandro.bono369@gmail.com>
Fri, 14 Oct 2022 22:16:16 +0000 (00:16 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 14 Oct 2022 22:32:31 +0000 (22:32 +0000)
commitee09c5c85312f571e14abe69bb6674a361c16d65
tree4a86163f8a41c2b4a6d898e2c03fa524075093ad
parentb392e913d6f8f95eb6ca5c71365f98edf6d26bbb
environment: Preserve time 0 when animations are disabled

There are cases where the animation time is set to 0 on purpose
in order to not animate. When animations are disabled via
/org/gnome/desktop/interface/enable-animations those animation
times are increased from 0 to 1. This makes the "Caps lock is on."
message appear unconditionally in the lockscreen for a brief moment.

Select the minimum between the two values. So that an animation time
0 is preserved instead of being replaced by 1.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2471>
js/ui/environment.js